<script type="text/javascript" src="__PUBLIC__/uploadify/jquery.uploadify.min.js"></script>
<script type="text/javascript" src="__PUBLIC__/js/jquery.validate.min.js"></script>
<link rel="stylesheet" type="text/css" href="__PUBLIC__/css/form_v.css">
<link rel="stylesheet" type="text/css" href="__PUBLIC__/uploadify/uploadify.css">

<style>
    input.error { border: 1px solid red; }
</style>
<h1 class="sysPageHead">
    <span class="sysPageDot"><img src="__PUBLIC__/images/sysListIcon3.png"><span class="textHide">.</span></span>
    广告申报
</h1>

<div class="iotSysmCon" style="background:#fff">
    <!--  -->
    <form method="post" action="__ROOT__/index.php/Medium/Site/store" enctype="multipart/form-data" id="addSiteForm" class="cmxform">
        <div class="reportCon picRelate ">
            <div class="reportBody">
                <div class="reportList"><span class="reportTit">网站名称：</span><input type="text" class="inp" name="site_name" id="title" placeholder="输入广告名称" title="请输入广告名称" required></div>
                <div class="reportList"><span class="reportTit">虚拟货币名称：</span><input type="text" class="inp" name="virtual_currency" placeholder="请输入虚拟货币名称" title="请输入虚拟货币名称" required></div>
                <div class="reportList"><span class="reportTit">安全码：</span><input type="text" class="inp" name="safe_code" placeholder="请输入安全码" title="请输入安全码" required></div>
                <div class="reportList"><span class="reportTit">默认汇率：</span><input type="text" class="inp" name="rate" placeholder="请输入默认汇率" title="请输入默认汇率" required></div>
                <div class="reportList"><span class="reportTit">自动返还虚拟货币链接：</span><input type="text" class="inp" name="auto_link" placeholder="请输入自动返还虚拟货币链接" title="请输入自动返还虚拟货币链接" required></div>
                <div class="reportList"><span class="reportTit">手动返还虚拟货币链接：</span><input type="text" class="inp" name="manually_link" placeholder="请输入手动返还虚拟货币链接" title="请输入手动返还虚拟货币链接" required></div>
                <div class="reportList"><span class="reportTit">网站经营类型：</span>
                    <select name="manage_type" id="manage_type" class="inp" required title="请选择广告类型" style="width: 448px">
                        <option value="">请选择</option>
                        <foreach name="manage_types" item="v" key="k">
                            <option value="{$k}">{$v}</option>
                        </foreach>
                    </select>
                    <label id="manage_type-error" class="error" for="manage_type"></label>
                </div>

                <div class="reportList"><p class="subBtn" style="margin-top:15px;padding-left:155px"><input type="submit" value="创建" class="modifyBtn"></p></div>
            </div>
        </div>
    </form>
</div>


<script>

    $(function() {
       //验证表单
        $("#addSiteForm").validate();
    });

</script>